(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
$(function() {
  var tempDaoHang, tempFourth, tempImgSwitch;
  tempImgSwitch = 1;
  $("#img_switch").on('swipeleft', function() {
    $(".img_switch" + tempImgSwitch).hide();
    $("#select_img_switch" + tempImgSwitch).removeClass('bg');
    tempImgSwitch++;
    if (tempImgSwitch > 3) {
      tempImgSwitch = 1;
    }
    $(".img_switch" + tempImgSwitch).show();
    return $("#select_img_switch" + tempImgSwitch).addClass('bg');
  });
  $("#img_switch").on('swiperight', function() {
    $(".img_switch" + tempImgSwitch).hide();
    $("#select_img_switch" + tempImgSwitch).removeClass('bg');
    tempImgSwitch--;
    if (tempImgSwitch < 1) {
      tempImgSwitch = 3;
    }
    $(".img_switch" + tempImgSwitch).show();
    return $("#select_img_switch" + tempImgSwitch).addClass('bg');
  });
  tempFourth = 1;
  $(".fourth_div").on('swipeleft', function() {
    $(".case" + tempFourth).hide();
    tempFourth++;
    if (tempFourth > 4) {
      tempFourth = 1;
    }
    return $(".case" + tempFourth).show();
  });
  $(".fourth_div").on('swiperight', function() {
    $(".case" + tempFourth).hide();
    tempFourth--;
    if (tempFourth < 1) {
      tempFourth = 4;
    }
    return $(".case" + tempFourth).show();
  });
  tempDaoHang = 1;
  $("#bg_daohang").click(function(e) {
    if (tempDaoHang === 1) {
      $("#tiaojiao_div" + tempDaoHang).hide();
      $("#daohang").css("margin-left", '2.05rem');
      $("#daohang").html("报名条件");
      tempDaoHang = 2;
      return $("#tiaojiao_div" + tempDaoHang).show();
    } else {
      $("#tiaojiao_div" + tempDaoHang).hide();
      $("#daohang").css("margin-left", '0');
      tempDaoHang = 1;
      $("#daohang").html("报名方式");
      return $("#tiaojiao_div" + tempDaoHang).show();
    }
  });
  return $(".cont_btn").click(function(e) {
    var temp, tempHeight;
    if ($("#height").val() === "") {
      alert("请填写身高");
      return;
    }
    if ($("#weight").val() === "") {
      alert("请填写体重");
      return;
    }
    tempHeight = $("#height").val() / 100;
    temp = tempHeight * tempHeight;
    temp = $("#weight").val() / temp;
    return $(".jieguo").html(temp.toFixed(1));
  });
});

},{}]},{},[1]);
